<?php
/**
 * 红包
 * User: fyl
 * Date: 2016/11/21
 * Time: 11:00
 */
class AwardEnum{

    public static  $status=array(
            'AVAILABLE' => '可用',
            'HAS_USED'  => '已使用[未激活]',
            'ACTIVATE'  => '已激活',
            'PAST_DUE'  => '过期',
        );
        public static  $road=array(
                'REGISTER' => '新手账号注册',
        );


    /**
     * @return array
     * 红包规则
     */
    public static function getRegister()
    {
        return [
            // 新手注册1号红包, 满1000可用18元红包 有效时间为60天
            'rgister_award_1' => [
                'amount'   => 18,
                'restrict' => 1000,
                'duetime'  => 86400*15-1,
                'limit'    => 30,
            ],
            // 新手注册1号红包, 满5000可用38元红包 有效时间为60天
            'rgister_award_2' => [
                'amount'   => 38,
                'restrict' => 5000,
                'duetime'  => 86400*15-1,
                'limit'    => 30,
            ],
            // 新手注册2号红包, 满10000可用66元红包 有效时间为60天
            'rgister_award_3' => [
                'amount'   => 66,
                'restrict' => 10000,
                'duetime'  => 86400*15-1,
                'limit'    => 30,
            ],
            // 新手注册3号红包, 满30000可用198元红包 有效时间为60天
            'rgister_award_4' => [
                'amount'   => 198,
                'restrict' => 30000,
                'duetime'  => 86400*15-1,
                'limit'    => 60,
            ],
            // 新手注册4号红包, 满50000可用298元红包 有效时间为60天
            'rgister_award_5' => [
                'amount'   => 298,
                'restrict' => 50000,
                'duetime'  => 86400*15-1,
                'limit'    => 60,
            ],
        ];
    }


}